//统一管理后台api
//引入封装好的axios
import request from '@/utils/request.js';

//仪表盘、设备概览 接口
export const $deviceCount = () => {
    return request.get('/device/count');
}
export const $sensorCount = () => {
    return request.get('/sensor/count');
}
export const $gatewayList = (params) => {
    return request.get('/gateway/list', { params });
}
export const $GroupLeaderList = (params) => {
    return request.get('/group/list', { params });
}
export const $sensorlist = (params) => {
    return request.get('/sensor/list', { params });
}
export const $groupAdd = (data) => {
    return request.post('/group/add', data);
}
export const $groupEdit = (data) => {
    return request.post('/group/edit', data);
}
export const $groupDel = (data) => {
    return request.post('/group/del', data);
}
export const $login = (data) => {
    return request.post('/account/login', data);
}
export const $sensorList1 = (params) => {
    return request.get('/device/sensorList', params);
}
export const $accountList = (params) => {
    return request.get('/account/list', params);
}
export const $securityList = (params) => {
    return request.get('/security/list', params);
}
export const $measurementList = (params) => {
    return request.get('/measurement/list', params);
}